From: Miles Bader Date: Sun, 6 Jun 2004 09:49:12 +0000 (+0000) Subject: Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-377 X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~22127 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=583684752b20a2bb84f1cb1f76050cc550b22140;p=emacs.git Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-377 (Fdisplay_supports_face_attributes_p): Work around bootstrapping problem --- diff --git a/src/ChangeLog b/src/ChangeLog index a682b0244d5..85ddf2810a5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-06-06 Miles Bader + + * xfaces.c (Fdisplay_supports_face_attributes_p): Give up + immediately if non-interactive or not initialized. + 2004-06-05 Richard M. Stallman * minibuf.c (Fcompleting_read): Doc fix. diff --git a/src/xfaces.c b/src/xfaces.c index fc665ce3bd5..d2cf2e24d08 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -6027,6 +6027,12 @@ face for italic. */) struct face *def_face; Lisp_Object attrs[LFACE_VECTOR_SIZE]; + if (noninteractive || !initialized) + /* We may not be able to access low-level face information in batch + mode, or before being dumped, and this function is not going to + be very useful in those cases anyway, so just give up. */ + return Qnil; + if (NILP (display)) frame = selected_frame; else if (FRAMEP (display))